
package com.example.mc_java;
import java.util.Objects;
///{
// musicFileUrl=/storage/emulated/0/静心音乐/yinyue/周杰伦 - 蒲公英的约定.mp3,
// musicTitle=蒲公英的约定,
// music_url=/storage/emulated/0/静心音乐/yinyue/周杰伦 - 蒲公英的约定.mp3,
// musicId=98044,
// music_duration=245368,
// music_file_name=蒲公英的约定,
// music_author=周杰伦}
public class Bean {
    String musicFileUrl;
    String musicTitle;
    String musicUrl;
    String musicId;
    String musicDuration;
    String musicFileName;
    String musicAuthor;

    public Bean(String musicFileUrl, String musicTitle, String musicUrl, String musicId, String musicDuration, String musicFileName, String musicAuthor) {
        this.musicFileUrl = musicFileUrl;
        this.musicTitle = musicTitle;
        this.musicUrl = musicUrl;
        this.musicId = musicId;
        this.musicDuration = musicDuration;
        this.musicFileName = musicFileName;
        this.musicAuthor = musicAuthor;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Bean bean = (Bean) o;
        return Objects.equals(musicFileUrl, bean.musicFileUrl)
                && Objects.equals(musicTitle, bean.musicTitle)
                && Objects.equals(musicUrl, bean.musicUrl)
                && Objects.equals(musicId, bean.musicId)
                && Objects.equals(musicDuration, bean.musicDuration)
                && Objects.equals(musicFileName, bean.musicFileName)
                && Objects.equals(musicAuthor, bean.musicAuthor);
    }

    @Override
    public int hashCode() {
        return Objects.hash(musicFileUrl, musicTitle, musicUrl, musicId, musicDuration, musicFileName, musicAuthor);
    }
}

